Package-level declarations

Types

Link copied to clipboard
interface BalancesApi

Interface representing an API for interacting with TBDex balances.

Link copied to clipboard
class CallbackError(val statusCode: <Error class: unknown class>, val details: List<ErrorDetail>) : Exception

Exception class representing an error that can occur during a callback execution.

Link copied to clipboard
class Callbacks(var getOfferings: GetOfferingsCallback? = null, var getBalances: GetBalancesCallback? = null, var getExchanges: GetExchangesCallback? = null, var getExchange: GetExchangeCallback? = null, var createExchange: CreateExchangeCallback? = null, var submitOrder: SubmitOrderCallback? = null, var submitClose: SubmitCloseCallback? = null)

Class that houses all callback types for the TBDex HTTP server.

Link copied to clipboard
typealias CreateExchangeCallback = suspend (<Error class: unknown class>, Rfq, Offering?, String?) -> Unit
Link copied to clipboard
class ErrorResponse(val errors: List<ErrorDetail>)

Error response

Link copied to clipboard
interface ExchangesApi

Interface representing an API for interacting with TBDex exchanges and related entities.

Link copied to clipboard

Fake balances api.

Link copied to clipboard

A fake implementation of the ExchangesApi interface for testing purposes. This class provides mock implementations for various methods.

Link copied to clipboard

A fake implementation of the OfferingsApi interface for testing purposes. This class provides mock implementations for retrieving offering information.

Link copied to clipboard
sealed interface Filter

Interface representing a generic filter for API requests.

Link copied to clipboard
typealias GetBalancesCallback = suspend (<Error class: unknown class>) -> Any
Link copied to clipboard
typealias GetExchangeCallback = suspend (<Error class: unknown class>) -> Any
Link copied to clipboard
typealias GetExchangesCallback = suspend (<Error class: unknown class>, GetExchangesFilter?) -> Any
Link copied to clipboard
class GetExchangesFilter(val exchangeIds: List<String>? = null, val from: String? = null) : Filter

Represents a filter for retrieving exchanges based on specific criteria.

Link copied to clipboard
typealias GetOfferingsCallback = suspend (<Error class: unknown class>) -> Any
Link copied to clipboard
interface OfferingsApi

Interface representing an API for interacting with TBDex offerings.

Link copied to clipboard
typealias SubmitCloseCallback = suspend (<Error class: unknown class>, Close) -> Unit
Link copied to clipboard
typealias SubmitOrderCallback = suspend (<Error class: unknown class>, Order) -> Unit